package com.rajesh.messageservice.bean;

import net.sqlcipher.Cursor;

/**
 * Created by rajes on 2017/5/22.
 */
public class ImageFlag extends WxDbBean {
    private String userName;
    private String imgFlag;
    private String lastUpdateTime;
    private String reserved1;
    private String reserved2;
    private String reserved3;
    private String reserved4;

    public ImageFlag() {}

    public ImageFlag(String userName, String imgFlag, String lastUpdateTime, String reserved1, String reserved2, String reserved3, String reserved4) {
        this.userName = userName;
        this.imgFlag = imgFlag;
        this.lastUpdateTime = lastUpdateTime;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
        this.reserved4 = reserved4;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getImgFlag() {
        return imgFlag;
    }

    public void setImgFlag(String imgFlag) {
        this.imgFlag = imgFlag;
    }

    public String getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(String lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getReserved1() {
        return reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    public String getReserved2() {
        return reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    public String getReserved3() {
        return reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String getReserved4() {
        return reserved4;
    }

    public void setReserved4(String reserved4) {
        this.reserved4 = reserved4;
    }


    @Override
    public WxDbBean translate(Cursor cursor) {
        if(cursor != null){
            this.userName = cursor.getString(cursor.getColumnIndex("username"));
            this.imgFlag = cursor.getString(cursor.getColumnIndex("imgflag"));
            this.lastUpdateTime = cursor.getString(cursor.getColumnIndex("lastupdatetime"));
            this.reserved1 = cursor.getString(cursor.getColumnIndex("reserved1"));
            this.reserved2 = cursor.getString(cursor.getColumnIndex("reserved2"));
            this.reserved3 = cursor.getString(cursor.getColumnIndex("reserved3"));
            this.reserved4 = cursor.getString(cursor.getColumnIndex("reserved4"));
        }
        return this;
    }
}
